package com.ycz.pattern.create.prototypepattern;

/**
 * @Description
 * @ClassName Rectangle
 * @Author yanchengzhi
 * @date 2023.11.21 01:06
 */
public class Rectangle extends Shape {

    public Rectangle() {
        type = "矩形";
    }

    @Override
    void draw() {
        System.out.println("执行矩形的draw方法！");
    }
}
